package cn.com.tedking.consumer.feign;

import cn.com.tedking.consumer.config.FeignConfiguration;
import cn.com.tedking.consumer.entity.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;

@FeignClient(name = "eureka-provider-user", configuration = FeignConfiguration.class)
public interface UserFeignClient {

    @RequestLine("GET /{id}")
    public User findById(@Param("id") Long id);

}
